import { flagOptions, timeOptions } from "@/constants"
import type { IllnessTime } from "@/enums"

export const formatIllnessTime = (time?: IllnessTime) => {
    // console.log(time)
    return timeOptions.find(item => item.value === time)?.label
  }
 export const formatConsultFlag = (flag?: 0 | 1) => {
    // console.log(flag)
    return flagOptions.find(item => item.value === flag)?.label
  }